package com.qijian.sync;

import com.qijian.maindata.service.IProductAttributeItemDetailService;
import com.qijian.maindata.service.IProductAttributeItemService;
import com.qijian.common.utils.sync.GetKingDeeData;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.text.SimpleDateFormat;

@Component
@RequiredArgsConstructor
@Slf4j
public class KingDeeSync {


    SimpleDateFormat sdf;
    SimpleDateFormat sdf1;
    GetKingDeeData kingDee;
    String dateFormat = "yyyy-MM-dd HH:mm:ss.SSS";
    String dateFormat_YMD = "yyyy-MM-dd";

    private static final int BATCH_SIZE = 10000;


    @Autowired
    private IProductAttributeItemService productAttributeItemService;

    @Autowired
    private IProductAttributeItemDetailService productAttributeItemDetailService;

    @PostConstruct
    public void init() {
        sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
        sdf1 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS");
        kingDee = new GetKingDeeData();
    }


}
